home *** CD-ROM | disk | FTP | other *** search
/ Maclife 157 / MACLIFE157-2001-09.ISO.7z / MACLIFE157-2001-09.ISO / Linux / MacOS Tools / BootX 1.2.2 / Sources / src / common / debug_text.h < prev    next >
Text File  |  2001-07-23  |  760b  |  33 lines

  1. #ifndef __DEBUG_TEXT_H__
  2. #define __DEBUG_TEXT_H__
  3.  
  4. #ifndef __DEBUG_HAS_PRINTF__
  5. #define __DEBUG_HAS_PRINTF__    1
  6. #endif
  7.  
  8. typedef struct dt_context {
  9.     /* pre-initialised */
  10.     unsigned char*    base;
  11.     unsigned long    row_bytes;    /* in bytes */
  12.     unsigned long    depth;        /* 8, 16 or 32 */
  13.     unsigned long    width;        /* in pixels */
  14.     unsigned long    height;
  15.     unsigned long    visible;
  16.     
  17.     /* initialised by dt_init() */
  18.     unsigned long    siz_w, siz_h;
  19.     unsigned long    pos_x, pos_y;
  20.     
  21. } dt_context ;
  22.  
  23. extern void dt_init(dt_context *ct);
  24.  
  25. extern void dt_draw_char(dt_context *ct, char c);
  26. extern void dt_draw_string(dt_context *ct, char *s);
  27. extern void dt_clear_screen(dt_context *ct);
  28.  
  29. #if __DEBUG_HAS_PRINTF__
  30. extern int    dt_printf(dt_context *ct, const char * format, ...);
  31. #endif
  32.  
  33. #endif